home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8160 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: nwlink.com!usenet
  2. From: Teresa Reiko <tjr19@mail.nwlink.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Tradition or what?
  5. Date: 2 Mar 1996 00:48:22 GMT
  6. Organization: Tenbyte Software
  7. Message-ID: <4h85sm$lm0@texas.nwlink.com>
  8. References: <4g0elg$mdr@redstone.interpath.net> <4h0bbo$c0q@fohnix.metronet.com> <4h7ce0$ojd@news.interpath.net>
  9. NNTP-Posting-Host: port48.annex4.nwlink.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.2 (Windows; U; 16bit)
  14.  
  15. softbase@mercury.interpath.net (Scott McMahan - Softbase Systems) wrote:
  16. >Stan Milam (milam@fohnix.metronet.com) wrote:
  17. >
  18. >: : Steve Maguire ... Writing Solid Code
  19.  
  20. >This is the first bad review of the book I've ever seen. When does he
  21. >violate Standard C? 
  22. >
  23. >Maguire's argument that the standard library is one of the worst
  24. >designed interfaces ever seen is very valid -- it happened accidentally
  25. >over years, with no rhyme or reason, and is filled with pitfalls.
  26. >Consistency in the stdlib would have been nice, if there was some way
  27. >it could have been achieved without breaking code. The bad part is
  28. >people use it as a model for new software!
  29.  
  30. In this book and others, notably 'Code Complete', these programming
  31. guides published by Microsoft Press, it is evident why Microsoft put
  32. so many bugs in Windows 95.  Here are the three worst Microsoft
  33. coding rules, in my opinion at least:
  34.  
  35. Every line of code must contain a comment.
  36. Any number greater than 2 must be a named constant.
  37. No procedure may be longer than 25 lines.
  38.  
  39. If you follow these rules, you can be sure to write buggy, inefficient
  40. code that is difficult to revise and will generally look 'dirty'.
  41. Of course, if this is your intent, that's OK, but...
  42.  
  43. ----------------------------------------------------------------------
  44. Teresa Reiko    Chief Programmer, Tenbyte Software    tjr19@nwlink.com
  45. ----------------------------------------------------------------------
  46.  
  47.  
  48.